package cn.edu.hitwh.kanlema.service;

import cn.edu.hitwh.kanlema.dto.ScrollResult;
import cn.edu.hitwh.kanlema.dto.UserDTO;
import cn.edu.hitwh.kanlema.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author vvcoder
 * @since 2025-8-18
 */
public interface IBlogService extends IService<Blog> {

    List<Blog> getHotPage(Integer current);

    Blog getBlogById(Long id);

    void likeBlog(Long id);

    List<UserDTO> getBlogLikes(Long id);

    Long saveBlog(Blog blog);

    ScrollResult queryBlogOfFollow(Long lastId);
}
